package top.canyue.eca_manager.service;

import java.util.Set;

public interface RedisService {
    boolean set(String key, String value);

    <T> T get(String key);

    boolean incrBy(String key, long increment);

    boolean incrBy(String key, double increment);

    boolean del(String key);

    boolean hSet(String key, String item, String value);

    <T> T hGet(String key, String item);

    boolean hDel(String key, String item);

    boolean hExists(String key, String item);

    boolean hIncrBy(String key, String item, long increment);

    boolean hIncrBy(String key, String item, double increment);

    Set<String> hKeys(String key);
}
